﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
     <title>${page.Title}#if(${page.PageIndex}>1)_第${page.PageIndex}页#end#if(${page.Channel.Id}!=${page.ParentChannel.Id})_${page.ParentChannel.Title}#end _${site.Name}</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords" content="${page.Keywords}  " />
    <meta name="description" content="${page.Description}"/>	
<link href="/${skin.Dir}/sosolist.css" rel="stylesheet" type="text/css">
   <script type="text/javascript" src="/${skin.Dir}/jquery-1.js"></script>

<script>
function checkwd(id){
	var wd = document.getElementById(id).keyword.value;
	if(wd.replace(/(^\s*)|(\s*$)/g, '') == ''){
		//alert("关键字不能为空或都为空格！");
		return false;
	}else{
		return true;
	}
}
</script>
</head>

<body>
<!--<div align="center"><script src="js/wk_top2.js" type="text/javascript" language="JavaScript" ></script></div>-->
<div class="w960 wenkang_top01 wenkang_top01_b">
     <a href="${site.Url}" ><img class="left" src="/templates/default/css/images/logo.png"  width="164" alt="${site.Name}" /></a>
    <div class="wenkang_sousuo left">
   	   <div class="wenkang_sousuo2">
       <span class="wenkang_che left"></span>
		<form id="formcms" name="form2"  onsubmit="SiteSearch();return false;" >
        <input class="left wenkang_ssk" name="keyword" id="keyword" type="text"  value="${page.SearchWords}" size="400">
        <input type="hidden" id="channelPath" value="${page.Channel.Dir}" />
         <select id="sltChannel" style="float:left;" >
   		 <option value="">全站</option>
           #foreach($ChannelEntity in $cmn.ChannelList(0))
        <option value="${ChannelEntity.Dir}">${ChannelEntity.Title}</option>
        #end
       </select>
        <input class="left wenkang_ssan" name="" type="image" src="/templates/default/css/images/wkw_86.gif" onclick="SiteSearch()">
		</form>
      </div>
    </div>
</div>
<div class="blankW"></div>
<div class="cen">
<div class="w755">
<div class="bluc">关键词：<span class="red">${page.SearchWords}</span>　　</div>
<!--程序循环-->
<!--程序循环-->
  #foreach($ListInfo in $cmn.SearchList(${page.Channel.Dir},10,${page.PageIndex},"${page.SearchWords}"))
                <li><a href="${ListInfo.Url}" target="_blank">${ListInfo.GetLengthTitle(60)}</a></li>
                <div class="pan5 lineh">
<ul class="top5">
  ${ListInfo.Summary}  
</ul>
</div>
                #end        
   <!--pag-->
   
 #parse("${skin.TemplateName}/include/searchPaging.htm")
 
   <!--pag-->
   <div class="blankW"></div>
   <div>
   <ul class="f14px fB w100">相关搜索：</ul>
   <ul class="leftul">
   <li></li></li>
   </ul>
   </div>
</div>

<div class="right200">

</div>
<div class="blankW"></div>
</div>
<div align="center">
</div>
<script type="text/javascript">
        function SiteSearch() {
        var ch = "", t = "", s = "";
        if ($("#keyword").val() == "站内全文智能搜索，快捷方便-_-") {
            alert("请填写查询内容");
            return;
        }
        if ($("#keyword").val() != "") {
            s = encodeURIComponent($("#keyword").val());
        }
        else {
            alert("请填写查询内容");
            return;
        }
        var channelPath = $("#sltChannel").val();
        if (channelPath != null && channelPath != "") {
            ch = channelPath + "/";
        }
        
        // alert("search.aspx?ch="+ch+"&s="+s+"&t="+t);
        location.href = "/search/" + ch + s;
        //alert($("#q1").val());
    }
        $(document).ready(function () {
        	
           $("#sltChannel").val("${page.ParentDir}")
            $("#keyword").bind({
                keydown: function (event) {
                    if (event.keyCode == 13) {

                        SiteSearch();
                    }
                },

                focus: function (event) {
                    if ($("#keyword").val() == "全文智能搜索，快捷方便-_-") {
                        $("#keyword").val("");
                    }
                },
                blur: function (event) {
                    if ($("#keyword").val() == "") {
                        $("#keyword").val("全文智能搜索，快捷方便-_-");
                    }
                }
            });
        }); 
</script>

</body></html>